#ifndef BOARDENTRY_H
#define BOARDENTRY_H

#include <QWidget>

#include "gobang.h"

class BoardEntry : public QWidget
{
    Q_OBJECT
public:
    BoardEntry(uint8_t row, uint8_t col, Gobang* gobang, QWidget *parent = nullptr);

signals:
    void game_over(int winner, std::string message);

protected:
    void paintEvent(QPaintEvent*);
    void mousePressEvent(QMouseEvent*);

private:
    uint8_t row;
    uint8_t col;
    Gobang* gobang;
};

#endif // BOARDENTRY_H
